package com.ys.entity.advanced;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="[kjecp_advert].[dbo].ADS_Sp_SearchTerm", catalog="Id")
public class AdsSpSearchTerm extends BaseEntity<AdsSpSearchTerm> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="PortfolioId", nameJava="portfolioId", typeDataBase="varchar")
	private String portfolioId;
	@YsField(nameDataBase="CampaignId", nameJava="campaignId", typeDataBase="varchar")
	private String campaignId;
	@YsField(nameDataBase="CampaignName", nameJava="campaignName", typeDataBase="varchar")
	private String campaignName;
	@YsField(nameDataBase="AdGroupId", nameJava="adGroupId", typeDataBase="varchar")
	private String adGroupId;
	@YsField(nameDataBase="AdGroupName", nameJava="adGroupName", typeDataBase="varchar")
	private String adGroupName;
	@YsField(nameDataBase="CampaignBudgetCurrencyCode", nameJava="campaignBudgetCurrencyCode", typeDataBase="varchar")
	private String campaignBudgetCurrencyCode;
	@YsField(nameDataBase="SearchTerm", nameJava="searchTerm", typeDataBase="varchar")
	private String searchTerm;
	@YsField(nameDataBase="KeywordId", nameJava="keywordId", typeDataBase="varchar")
	private String keywordId;
	@YsField(nameDataBase="Keyword", nameJava="keyword", typeDataBase="varchar")
	private String keyword;
	@YsField(nameDataBase="KeywordType", nameJava="keywordType", typeDataBase="varchar")
	private String keywordType;
	@YsField(nameDataBase="Impressions", nameJava="impressions", typeDataBase="int")
	private Integer impressions;
	@YsField(nameDataBase="Clicks", nameJava="clicks", typeDataBase="int")
	private Integer clicks;
	@YsField(nameDataBase="ClickThruRate", nameJava="clickThruRate", typeDataBase="decimal")
	private BigDecimal clickThruRate;
	@YsField(nameDataBase="Cost", nameJava="cost", typeDataBase="decimal")
	private BigDecimal cost;
	@YsField(nameDataBase="CostPerClick", nameJava="costPerClick", typeDataBase="decimal")
	private BigDecimal costPerClick;
	@YsField(nameDataBase="AcosClicks7d", nameJava="acosClicks7d", typeDataBase="decimal")
	private BigDecimal acosClicks7d;
	@YsField(nameDataBase="RoasClicks7d", nameJava="roasClicks7d", typeDataBase="decimal")
	private BigDecimal roasClicks7d;
	@YsField(nameDataBase="UnitsSoldClicks1d", nameJava="unitsSoldClicks1d", typeDataBase="int")
	private Integer unitsSoldClicks1d;
	@YsField(nameDataBase="Sales1d", nameJava="sales1d", typeDataBase="decimal")
	private BigDecimal sales1d;
	@YsField(nameDataBase="Purchases1d", nameJava="purchases1d", typeDataBase="int")
	private Integer purchases1d;
	@YsField(nameDataBase="UnitsSoldSameSku1d", nameJava="unitsSoldSameSku1d", typeDataBase="int")
	private Integer unitsSoldSameSku1d;
	@YsField(nameDataBase="AttributedSalesSameSku1d", nameJava="attributedSalesSameSku1d", typeDataBase="decimal")
	private BigDecimal attributedSalesSameSku1d;
	@YsField(nameDataBase="PurchasesSameSku1d", nameJava="purchasesSameSku1d", typeDataBase="int")
	private Integer purchasesSameSku1d;
	@YsField(nameDataBase="UnitsSoldOtherSku7d", nameJava="unitsSoldOtherSku7d", typeDataBase="int")
	private Integer unitsSoldOtherSku7d;
	@YsField(nameDataBase="SalesOtherSku7d", nameJava="salesOtherSku7d", typeDataBase="decimal")
	private BigDecimal salesOtherSku7d;
	@YsField(nameDataBase="ShopNameMc", nameJava="shopNameMc", typeDataBase="varchar")
	private String shopNameMc;
	@YsField(nameDataBase="ShopId", nameJava="shopId", typeDataBase="varchar")
	private String shopId;
	@YsField(nameDataBase="VGsJc", nameJava="vGsJc", typeDataBase="varchar")
	private String vGsJc;
	@YsField(nameDataBase="VGsBm", nameJava="vGsBm", typeDataBase="varchar")
	private String vGsBm;
	@YsField(nameDataBase="Date", nameJava="date", typeDataBase="varchar")
	private String date;
	@YsField(nameDataBase="CUser", nameJava="cUser", typeDataBase="varchar")
	private String cUser;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public AdsSpSearchTerm setId(Long id) {
		this.id = id;
		return this;
	}
	public String getPortfolioId() {
		return portfolioId;
	}
	public AdsSpSearchTerm setPortfolioId(String portfolioId) {
		this.portfolioId = portfolioId;
		return this;
	}
	public String getCampaignId() {
		return campaignId;
	}
	public AdsSpSearchTerm setCampaignId(String campaignId) {
		this.campaignId = campaignId;
		return this;
	}
	public String getCampaignName() {
		return campaignName;
	}
	public AdsSpSearchTerm setCampaignName(String campaignName) {
		this.campaignName = campaignName;
		return this;
	}
	public String getAdGroupId() {
		return adGroupId;
	}
	public AdsSpSearchTerm setAdGroupId(String adGroupId) {
		this.adGroupId = adGroupId;
		return this;
	}
	public String getAdGroupName() {
		return adGroupName;
	}
	public AdsSpSearchTerm setAdGroupName(String adGroupName) {
		this.adGroupName = adGroupName;
		return this;
	}
	public String getCampaignBudgetCurrencyCode() {
		return campaignBudgetCurrencyCode;
	}
	public AdsSpSearchTerm setCampaignBudgetCurrencyCode(String campaignBudgetCurrencyCode) {
		this.campaignBudgetCurrencyCode = campaignBudgetCurrencyCode;
		return this;
	}
	public String getSearchTerm() {
		return searchTerm;
	}
	public AdsSpSearchTerm setSearchTerm(String searchTerm) {
		this.searchTerm = searchTerm;
		return this;
	}
	public String getKeywordId() {
		return keywordId;
	}
	public AdsSpSearchTerm setKeywordId(String keywordId) {
		this.keywordId = keywordId;
		return this;
	}
	public String getKeyword() {
		return keyword;
	}
	public AdsSpSearchTerm setKeyword(String keyword) {
		this.keyword = keyword;
		return this;
	}
	public String getKeywordType() {
		return keywordType;
	}
	public AdsSpSearchTerm setKeywordType(String keywordType) {
		this.keywordType = keywordType;
		return this;
	}
	public Integer getImpressions() {
		return impressions;
	}
	public AdsSpSearchTerm setImpressions(Integer impressions) {
		this.impressions = impressions;
		return this;
	}
	public Integer getClicks() {
		return clicks;
	}
	public AdsSpSearchTerm setClicks(Integer clicks) {
		this.clicks = clicks;
		return this;
	}
	public BigDecimal getClickThruRate() {
		return clickThruRate;
	}
	public AdsSpSearchTerm setClickThruRate(BigDecimal clickThruRate) {
		this.clickThruRate = clickThruRate;
		return this;
	}
	public BigDecimal getCost() {
		return cost;
	}
	public AdsSpSearchTerm setCost(BigDecimal cost) {
		this.cost = cost;
		return this;
	}
	public BigDecimal getCostPerClick() {
		return costPerClick;
	}
	public AdsSpSearchTerm setCostPerClick(BigDecimal costPerClick) {
		this.costPerClick = costPerClick;
		return this;
	}
	public BigDecimal getAcosClicks7d() {
		return acosClicks7d;
	}
	public AdsSpSearchTerm setAcosClicks7d(BigDecimal acosClicks7d) {
		this.acosClicks7d = acosClicks7d;
		return this;
	}
	public BigDecimal getRoasClicks7d() {
		return roasClicks7d;
	}
	public AdsSpSearchTerm setRoasClicks7d(BigDecimal roasClicks7d) {
		this.roasClicks7d = roasClicks7d;
		return this;
	}
	public Integer getUnitsSoldClicks1d() {
		return unitsSoldClicks1d;
	}
	public AdsSpSearchTerm setUnitsSoldClicks1d(Integer unitsSoldClicks1d) {
		this.unitsSoldClicks1d = unitsSoldClicks1d;
		return this;
	}
	public BigDecimal getSales1d() {
		return sales1d;
	}
	public AdsSpSearchTerm setSales1d(BigDecimal sales1d) {
		this.sales1d = sales1d;
		return this;
	}
	public Integer getPurchases1d() {
		return purchases1d;
	}
	public AdsSpSearchTerm setPurchases1d(Integer purchases1d) {
		this.purchases1d = purchases1d;
		return this;
	}
	public Integer getUnitsSoldSameSku1d() {
		return unitsSoldSameSku1d;
	}
	public AdsSpSearchTerm setUnitsSoldSameSku1d(Integer unitsSoldSameSku1d) {
		this.unitsSoldSameSku1d = unitsSoldSameSku1d;
		return this;
	}
	public BigDecimal getAttributedSalesSameSku1d() {
		return attributedSalesSameSku1d;
	}
	public AdsSpSearchTerm setAttributedSalesSameSku1d(BigDecimal attributedSalesSameSku1d) {
		this.attributedSalesSameSku1d = attributedSalesSameSku1d;
		return this;
	}
	public Integer getPurchasesSameSku1d() {
		return purchasesSameSku1d;
	}
	public AdsSpSearchTerm setPurchasesSameSku1d(Integer purchasesSameSku1d) {
		this.purchasesSameSku1d = purchasesSameSku1d;
		return this;
	}
	public Integer getUnitsSoldOtherSku7d() {
		return unitsSoldOtherSku7d;
	}
	public AdsSpSearchTerm setUnitsSoldOtherSku7d(Integer unitsSoldOtherSku7d) {
		this.unitsSoldOtherSku7d = unitsSoldOtherSku7d;
		return this;
	}
	public BigDecimal getSalesOtherSku7d() {
		return salesOtherSku7d;
	}
	public AdsSpSearchTerm setSalesOtherSku7d(BigDecimal salesOtherSku7d) {
		this.salesOtherSku7d = salesOtherSku7d;
		return this;
	}
	public String getShopNameMc() {
		return shopNameMc;
	}
	public AdsSpSearchTerm setShopNameMc(String shopNameMc) {
		this.shopNameMc = shopNameMc;
		return this;
	}
	public String getShopId() {
		return shopId;
	}
	public AdsSpSearchTerm setShopId(String shopId) {
		this.shopId = shopId;
		return this;
	}
	public String getVGsJc() {
		return vGsJc;
	}
	public AdsSpSearchTerm setVGsJc(String vGsJc) {
		this.vGsJc = vGsJc;
		return this;
	}
	public String getVGsBm() {
		return vGsBm;
	}
	public AdsSpSearchTerm setVGsBm(String vGsBm) {
		this.vGsBm = vGsBm;
		return this;
	}
	public String getDate() {
		return date;
	}
	public AdsSpSearchTerm setDate(String date) {
		this.date = date;
		return this;
	}
	public String getCUser() {
		return cUser;
	}
	public AdsSpSearchTerm setCUser(String cUser) {
		this.cUser = cUser;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public AdsSpSearchTerm setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public AdsSpSearchTerm setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public AdsSpSearchTerm setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static AdsSpSearchTerm adsSpSearchTerm(
		String portfolioId,
		String campaignId,
		String campaignName,
		String adGroupId,
		String adGroupName,
		String campaignBudgetCurrencyCode,
		String searchTerm,
		String keywordId,
		String keyword,
		String keywordType,
		Integer impressions,
		Integer clicks,
		BigDecimal clickThruRate,
		BigDecimal cost,
		BigDecimal costPerClick,
		BigDecimal acosClicks7d,
		BigDecimal roasClicks7d,
		Integer unitsSoldClicks1d,
		BigDecimal sales1d,
		Integer purchases1d,
		Integer unitsSoldSameSku1d,
		BigDecimal attributedSalesSameSku1d,
		Integer purchasesSameSku1d,
		Integer unitsSoldOtherSku7d,
		BigDecimal salesOtherSku7d,
		String shopNameMc,
		String shopId,
		String vGsJc,
		String vGsBm,
		String date,
		String cUser,
		Integer status
			) {
		AdsSpSearchTerm entity = new AdsSpSearchTerm();
		entity.setPortfolioId(portfolioId);
		entity.setCampaignId(campaignId);
		entity.setCampaignName(campaignName);
		entity.setAdGroupId(adGroupId);
		entity.setAdGroupName(adGroupName);
		entity.setCampaignBudgetCurrencyCode(campaignBudgetCurrencyCode);
		entity.setSearchTerm(searchTerm);
		entity.setKeywordId(keywordId);
		entity.setKeyword(keyword);
		entity.setKeywordType(keywordType);
		entity.setImpressions(impressions);
		entity.setClicks(clicks);
		entity.setClickThruRate(clickThruRate);
		entity.setCost(cost);
		entity.setCostPerClick(costPerClick);
		entity.setAcosClicks7d(acosClicks7d);
		entity.setRoasClicks7d(roasClicks7d);
		entity.setUnitsSoldClicks1d(unitsSoldClicks1d);
		entity.setSales1d(sales1d);
		entity.setPurchases1d(purchases1d);
		entity.setUnitsSoldSameSku1d(unitsSoldSameSku1d);
		entity.setAttributedSalesSameSku1d(attributedSalesSameSku1d);
		entity.setPurchasesSameSku1d(purchasesSameSku1d);
		entity.setUnitsSoldOtherSku7d(unitsSoldOtherSku7d);
		entity.setSalesOtherSku7d(salesOtherSku7d);
		entity.setShopNameMc(shopNameMc);
		entity.setShopId(shopId);
		entity.setVGsJc(vGsJc);
		entity.setVGsBm(vGsBm);
		entity.setDate(date);
		entity.setCUser(cUser);
		entity.setStatus(status);
		return entity;
	}
}